package com.ssm.order.util;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.ssm.order.dto.OrderDto;

public class ExceptionUtils {

    public static OrderDto blockHandler(OrderDto dto, BlockException ex) {
        ex.printStackTrace();
        OrderDto dto1 = new OrderDto();
        dto1.setCode("error ... 1");
        return dto1;
    }
}
